<div id="formsuccess" style="display:none">{if isset($errors.status) && $errors.status == "success"}{$errors.dest}{/if}</div>
<form name="form" method="post" action="?module=medias&action=AjaxDuplicateMedia&row[0]={$originalPublication->getUniqueId()}" class="nyroModal">
{t assignTo=title}Duplicate document{/t}
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalTitle.html" title=$title}
    <div id="modalContent">
		<table class="listTable">
			<tr><td>&nbsp;{t}Language{/t} :</td><td>{$originalPublication->getLang()}</td></tr>
			<tr>
                <td>&nbsp;{t}Label{/t} :</td>
                <td>
                    <input type="text" name="form[label]" value="{$values.label|escape:"html"}" style="width:300px" />
                   {if isset($errors.label)}<br/>{icon name="warning.png"} {$errors.label}{/if}
                   {if isset($errors.exist)}<br/>{icon name="warning.png"} {$errors.exist}{/if}
                </td>
            </tr>
			<tr>
                <td>&nbsp;{t}Folder{/t} :</td>
                <td>
                    <select name="form[folder]">
                    {foreach from=$values.folders item=fold}
                        <option value="{$fold[0]}" {if $fold[3] == false}disabled="disabled"{/if} {$fold[2]}>{$fold[1]}</option>
                    {/foreach}
                    </select>
                </td>
            </tr>
		</table>
    </div>
{t assignTo=footerTitle}Duplicate{/t}
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalFooter.html" label=$footerTitle}
</form>
